Configuration

data class Configuration(val restartIfRouteChanged: Boolean = false)

The Configuration of SoundPlayer

Constructors

Link copied to clipboard
constructor(restartIfRouteChanged: Boolean = false)

Properties

Link copied to clipboard

The player will be restarted if the route changed. Practically it means that the player will be updated if user connect/ disconnects audio outputs so the media can be played. Note apple doesn't recommend to play on speaker if user unplugged headphones (https://developer.apple.com/documentation/avfaudio/responding-to-audio-route-changes)